//Function to load library classes
function loadjs(filename) {
	var file=document.createElement('script');
	file.setAttribute("type","text/javascript");
	file.setAttribute("src",filename);
	document.getElementsByTagName("head")[0].appendChild(file);
}

loadjs("RLHEXLIB\\World.js");
loadjs("RLHEXLIB\\Section.js");
loadjs("RLHEXLIB\\Display.js");
loadjs("RLHEXLIB\\Player.js");
loadjs("RLHEXLIB\\Keyboard.js");
loadjs("RLHEXLIB\\Message.js");
loadjs("RLHEXLIB\\Stats.js");
loadjs("RLHEXLIB\\Menu.js");
loadjs("RLHEXLIB\\Dice.js");
loadjs("RLHEXLIB\\Skills.js");
loadjs("RLHEXLIB\\BinaryHeap.js");
loadjs("RLHEXLIB\\AStar.js");
loadjs("RLHEXLIB\\Storage.js");
loadjs("RLHEXLIB\\NPC.js");